import {combineReducers}                from 'redux';

import {ACTIVE}                         from '../constants';
import {reduceSuccess, returnSuccess}   from '../utils/Reducer';

export default combineReducers({

    get: reduceSuccess({}, ACTIVE.get),
    add: returnSuccess(ACTIVE.add),
    edit: returnSuccess(ACTIVE.edit),
    ident: reduceSuccess('', ACTIVE.ident),
    distinct: reduceSuccess(false, ACTIVE.distinct),

})
